package com.zdb.demo.design.pattern.creational.prototype;


import java.text.MessageFormat;

public class MailUtil {

    public static void sendMail(Mail mail) {
        String str = "向{0}同学发送邮件，地址：{1},内容：{2}";
        System.out.println(MessageFormat.format(str, mail.getName(), mail.getAddress(), mail.getContent()));
    }

    public static void saveOriginMailRecord(Mail mail) {
        System.out.println("保存初始mail:"  + mail);
    }
}
